/*
 	Software Author: Mike Moore
 	Vectrics Flashrecruit
 	Open source job board and applicant tracking system.  Built with enterprise Java.
 	GPL License applies to this source code.
 */
package org.vectrics.struts;

import java.util.ArrayList;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.List;
import java.util.Properties;

public class ParameterNamesEnumeration implements Enumeration {
	private List paramNamesList = new ArrayList();
	private Iterator iter = null;
	
	public ParameterNamesEnumeration(Properties additionalProperties, Enumeration originalParamNames) {
		paramNamesList.addAll(additionalProperties.keySet());
		while (originalParamNames.hasMoreElements()) {
			paramNamesList.add((String)originalParamNames.nextElement());
		}
		iter = paramNamesList.iterator();
	}
	
	public boolean hasMoreElements() {
		return iter.hasNext();
	}

	public Object nextElement() {
		return iter.next();
	}

}
